import request from '@/utils/request';


// 删除图片
export function deleteFile(url) {
  return request({
    url: '/common/aliyun/delete',
    method: 'delete',
    data: url
  });
}

//根据手机号模糊查询美发师
export function getStylistByMobile(query) {
  return request({
    url: '/common/find/stylist',
    method: 'get',
    params: query
  });
}
//根据手机号模糊查询门店
export function getStoreByMobile(query) {
  return request({
    url: '/common/find/store',
    method: 'get',
    params: query
  });
}
//根据美发师ID查询美发师详情
export function getStylistById(query) {
  return request({
    url: '/common/find/stylist/'+query,
    method: 'get'
  });
}
//根据门店ID查询门店详情
export function getStoreById(query) {
  return request({
    url: '/common/find/store/'+query,
    method: 'get'
  });
}

export function getOssInfo(query) {
  return request({
    url: '/common/oss/info',
    method: 'get'
  });
}
//查询所有区域列表
export function areaAll() {
  return request({
    url: '/main/area/all',
    method: 'get'
  });
}

export function getBannerAddress(query) {
  return request({
    url: '/common/banner/address',
    method: 'get',
    params: query
  });
}

export function getUserById(query) {
  return request({
    url: '/common/find/user',
    method: 'get',
    params: query
  });
}
